package com.zan.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.List;

/**
 * 封装首页类别商品推荐
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryVo2 {

    @Id
    @Column(name = "category_id")
    private Integer categoryId;

    @Column(name = "category_name")
    private String categoryName;

    @Column(name = "category_level")
    private Integer categoryLevel;

    @Column(name = "parent_id")
    private Integer parentId;

    @Column(name = "category_icon")
    private String categoryIcon;

    @Column(name = "category_slogan")
    private String categorySlogan;

    @Column(name = "category_pic")
    private String categoryPic;

    @Column(name = "category_bg_color")
    private String categoryBgColor;

    private List<ProductVo> products;

}